require 'spec_helper'
require 'game_object'

describe GameObject, "creation" do
  before(:each) do
    @obj = GameObject.new
  end
  
  # it "should return a correctly proportioned triangle, pointing in the direction of travel on #polygon" do
  #   @obj.height = 10
  #   @obj.width = 10
  #   
  #   poly = @obj.polygon
  #   
  #   # Things are off by sub-pixels
  #   poly.points.each do |p|
  #     p.x = p.x.round
  #     p.y = p.y.round
  #   end
  #   
  #   poly.points.should have(3).things
  #   poly.points[0].to_a.should == [5, 0]
  #   poly.points[1].to_a.should == [-5, -5]
  #   poly.points[2].to_a.should == [-5, 5]
  # end
end